<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReserveTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('reserve', function (Blueprint $table) {
            $table->id();
            $table->string('reserved_day', 50)->comment('预定日期');
            $table->string('invitation_code', 10)->comment('邀请码');
            $table->string('create_date', 10)->comment('提交日期（20210529）');
            $table->integer('uid')->comment('预约的用户ID');
            $table->string('user_name', 100)->comment('预约的用户名');
            $table->integer('status')->default(1)->comment('状态（1待验证2已验证）');
            $table->integer('create_time')->comment('提交时间戳');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('reserve');
    }
}
